import Vue from 'vue'
import VueRouter from 'vue-router'
import baseRouter from './baseRouter'

Vue.use(VueRouter)

let router = new VueRouter({
  routes: baseRouter,
})
router.onError(error => {
  if (/Navigation cancelled/.test(error.message)) {
    console.log('error', error)
  }
})
export default router
